package com.wuyoucar.service;

import com.wuyoucar.entity.TCarinfo;
import com.wuyoucar.entity.TCarinfoSource;
import com.wuyoucar.entity.TOrder;
import com.wuyoucar.entity.TPolicy;

import java.util.List;
import java.util.Map;
import java.util.function.ToDoubleBiFunction;

public interface ITOrderService {
    //根据用户id查询相应的订单列表
    //
    List<TOrder> findAllOrders(Integer userid);
    //根据订单id修改订单信息
    int modifyOrderByOrderid(TOrder order);
    //根据订单id取消订单
    int removeOrderByOrderid(String ordernumber);
    //根据订单id查找订单
    TOrder findOrderByOrderid(String ordernumber);
    //支付订单
    int payOrderByOrderNumber(TOrder order);
    //将订单信息保存到保单中
    int addToPolicy(TPolicy policy);
    //查找车管所验证车辆信息
    TCarinfoSource findCarInfoSource(Map<String,String> map);
    //修改订单表的remark信息
    int modifyOrderRemark(Map<String,String> map);
}
